rem #--------------------------------------------------------------------------------------------------------------------------------------------------------
rem #
rem # Mi-DevEnv			:	http://midevenv.codeplex.com 
rem #					:	(c) IT Bridge 2012
rem #					:	A concept originated by Chris Nurse
rem #
rem # Licence			:	GNU General Public License version 2 (GPLv2)
rem #					:	http://midevenv.codeplex.com/license
rem #
rem #--------------------------------------------------------------------------------------------------------------------------------------------------------

@echo off
cls
echo Mi-DevEnv SYSPREP phase running...
copy %~dp0\Unattend.xml c:\windows\system32\sysprep\Unattend.xml > nul

cd c:\windows\system32\sysprep
Sysprep.exe /oobe /generalize /reboot /unattend:c:\windows\system32\sysprep\Unattend.xml
